package com.qf.fmw.service;

import com.qf.fmw.entity.po.User;
import com.qf.fmw.entity.vo.RespResult;

import javax.servlet.http.HttpSession;

public interface UserService {
    //登录功能
    RespResult login(HttpSession session, String name, String password);

    // 注册
    RespResult register(String name, String password, String email, String sex);

    //注销功能
    RespResult logout(HttpSession session);

    //查询所有用户
    RespResult showAllUsers();

    //展示用户个人信息
    RespResult showUserMessage(int userId);

    //修改个人信息
    RespResult updateUserMessage(int userId, String userName, String email, String sex);

    //修改密码
    RespResult updateUserPassword(int userId, String newPassword);

    //根据性别查询会员用户
    RespResult showUserBySex(String sex);

    //根据姓名模糊查询会员用户
    RespResult showUserByName(String name);

    RespResult deleteUser(int userId);

    // 根据姓名和性别联合查询用户
    RespResult showUserByNameAndSex(String name, String sex);

    // 显示无效用户
    RespResult showInvalidUsers();

    // 搜索无效用户
    RespResult searchInvalidUsers(String query);

    // 删除无效用户
    RespResult deleteInvalidUser(int userId);


    RespResult getAddress(int userId);

    RespResult searchInvalidUserBySex(String gender);

    RespResult searchInvalidUser(String query);
}
